#!/usr/bin/env xonsh

p"~/.xonshrc".exists() && source ~/.xonshrc

from os.path import dirname,abspath
import sys
PWD = dirname(abspath(__file__))
cd @(PWD)

platform = sys.platform

if platform == 'darwin':
  OS = 'macos'
elif platform == 'win32':
  OS = 'windows'
else:
  OS = platform


flutter build @(OS) --release

if OS == 'macos':
  print("./build/macos/Build/Products/Release/rmw_link.app/Contents/MacOS/rmw_link")
